package com.tuanzi.loan.business.service.receipt.statistics;

import com.tuanzi.loan.business.entity.extend.ExtendInfo;
import com.tuanzi.loan.business.entity.receipt.statistics.ReceiptExtendStatistics;
import com.tuanzi.loan.core.service.CommonService;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.receipt.statistics.ReceiptExtendStatisticsSearchRequest;
import com.tuanzi.loan.vo.response.receipt.statistics.ReceiptExtendStatisticsSearchResponse;
import org.springframework.data.domain.Page;

import java.util.Date;
import java.util.List;

public interface ReceiptExtendStatisticsService extends CommonService<ReceiptExtendStatistics,Long>{

    Page<ReceiptExtendStatisticsSearchResponse> list(PageSearcher<ReceiptExtendStatisticsSearchRequest> pageSearcher);


    List<ExtendInfo> findAllExtendInfos();


    Integer findOrderCountByProdIdAndChanelIdAndDate(Long productId, String id, Date startTime, Date endTime);

    Integer getNginxUV(String url, Date date);

    Integer getRegisterCount(String id, Date startDate,Date endDate);
}
